package com.content.scaffold.common.annotation;

import com.content.scaffold.model.enums.SensitiveType;

import java.lang.annotation.*;

/**
 * @author xiaojl
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SensitiveField {
    String pattern() default "";

    SensitiveType type() default SensitiveType.DEFAULT;  // 预定义类型

    boolean encryption() default false;
}
